﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problem1
{
    class Program
    {
        static void Main(string[] args)
        {
            String nume, model, varsta, culoare;
            while (true)
            {
                Console.WriteLine("1 -- introdu client nou");
                Console.WriteLine("2 -- introdu masina ");
                Console.WriteLine("3 -- sterge masina");
                Console.WriteLine("4 -- iesire");

                String x = Console.ReadLine();
                switch (x)
                {
                    case "1":
                        Console.Write("nume client :");
                        nume = Console.ReadLine();
                        Console.Write("varsta Client :");
                        varsta = Console.ReadLine();
                        int v;
                        Int32.TryParse(varsta, out v);
                        ClientManager.getInstance().addClient(nume, v);
                        break;
                    case "2":
                        Console.Write("nume client :");
                        nume = Console.ReadLine();
                        Console.Write("model :");
                        model = Console.ReadLine();
                        Console.Write("culoare :");
                        culoare = Console.ReadLine();
                        ClientManager.getInstance().addCar(nume, model, culoare);
                        break;
                    case "3":
                        Console.Write("nume client :");
                        nume = Console.ReadLine();
                        Console.Write("model :");
                        model = Console.ReadLine();
                        Console.Write("culoare :");
                        culoare = Console.ReadLine();
                        ClientManager.getInstance().stergeMasina(nume, model, culoare);
                        break;
                    case "4":
                        Console.WriteLine("That's all folks!!");
                        Environment.Exit(0);
                        break;
                    default :
                        Console.WriteLine("invalid option!");
                        break;

                }

            }
        }
    }
}
